<?php
// +----------------------------------------------------------------------
// | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
// +----------------------------------------------------------------------
// | File name: BindingUserPassRequest.php
// +----------------------------------------------------------------------
// | Author: liuju
// +----------------------------------------------------------------------
// | Description: 描述文档功能
// +----------------------------------------------------------------------
// | Others: 其他内容的说明
// +----------------------------------------------------------------------
// | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
// +----------------------------------------------------------------------
// | 1.Date: 2018-12-29 Author: liuju Modification: 创建
// +----------------------------------------------------------------------

namespace App\Http\Requests\Frontend\V10\Auth;


use Illuminate\Foundation\Http\FormRequest;

class BindingUserPassRequest extends FormRequest
{

    public function authorize()
    {
        return true;
    }

    public function rules()
    {
        return  [
            'openid'=>'required|size:28',
            'phone_num'=>'required',
            'password'=>'required',
        ];
    }

    public  function messages()
    {
        return [
            'openid.required' => '缺少微信openId',
            'openid.size' =>'openid长度非法',
            'phone_num.required' => '缺少手机号码',
            'password.required' => '缺少密码',
        ];
    }
}